//
//  TSPushNotificationView.h
//  TTLoveCar
//
//  Created by 王洋 on 2017/8/14.
//  Copyright © 2017年 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface TSPushNotificationItem : NSObject

@property (nonatomic, strong) NSString *message;

@property (nonatomic, strong) NSDictionary *body;

@property (readwrite, nonatomic, assign) id target;

@property (readwrite, nonatomic) SEL action;

+ (instancetype)pushItemWith:(NSString*)message
                        body:(NSDictionary*)body
                      target:(id)target
                      action:(SEL)action;

@end


@interface TSPushNotificationView : UIView

@property (nonatomic, strong) NSDate *lastPlaySoundDate;

@property (nonatomic, assign) CGFloat contentViewHeight;

+ (void) showPushViewInView:(UIView*)inview item:(TSPushNotificationItem*)item;

+ (void) dismissPushView;

@end
